package com.otaku.crawler.util;

public class ExceptionUtil {
	public static String getMessage(Exception e) {
		StackTraceElement[] messages = e.getStackTrace();
		int length = messages.length;
		
		String r = e.getClass().getName()+"\n";
		
		for (int i = 0; i < length; i++) {
			r += "\t"+messages[i].toString()+"\n";
		}
		
		return r;
	}
}
